<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>jQuery File Upload Example</title>
</head>

<body>
    <input id="fileupload" type="file" name="eric" data-url="http://localhost:3000/category/ceshiUpload" multiple>
    <div id="previewArea">

    </div>
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="./jquery.ui.widget.js"></script>
    <script src="./jquery.fileupload.js"></script>
    <script>
        $(function () {
            $('#fileupload').fileupload({
                dataType: 'json',
                done: function (e, data) {
                    console.log(data.result);
                    $('#previewArea').append('<img src="'+data.result.picAddr+'">');
                }
            });
        });
    </script>
</body>

</html>